﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using C1.Win.C1Ribbon;
using CWCS.Entity.SRM;

namespace CWCS.UI
{
    public partial class Frmmesinfo : C1RibbonForm
    {
        BLL.ConveryBLL bll = new BLL.ConveryBLL();
        public Frmmesinfo()
        {
            InitializeComponent();

        }

        private void button1_Click(object sender, EventArgs e)
        {
           
        }

        private void label1_Click(object sender, EventArgs e)
        {

        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {

        }

        private void button1_Click_1(object sender, EventArgs e)
        {
            if (textBox1.Text == null || textBox1.Text.Length != 8)
            {
                MessageBox.Show("请输出正确的托盘条码！");
                return;
            }
            string msg = string.Empty;
            int result = 0;
            if (bll.GettaskInfo(bll.WareHouseID, textBox1.Text,"", "1013", "14", "7", "C", "1000", "0", "", ref msg, ref result))
            {
                //MessageBox.Show("添加接口成功！");
                
                bll.ShowConveryLog("WriteInfo", "站台：1013 手动添加MES接口成功");
                Frmmesinfo fs = new Frmmesinfo();
                fs.Close();
            }
            else
                MessageBox.Show("添加接口失败！");
        }
    }
}
